﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace EPiServer.Research.MobileCenter.JSON
{
    /// <summary>
    /// JSON Gadget which is the highest level gadget
    /// </summary>
    [DataContract]
    public class JSONGadget
    {

        public JSONGadget()
        {
            gadgets = new List<JSONGadget>();
        }

        [DataMember]
        public virtual string name { get; set; }

        [DataMember]
        public virtual string url { get; set; }

        [DataMember]
        public virtual string type { get; set; }

        [DataMember]
        public virtual List<JSONGadget> gadgets { get; set; }
    }
}
